package com.hghivln.controller.erp;

import com.hghivln.pojo.dto.InventoryLogDto;
import com.hghivln.pojo.dto.MedicinesDto;
import com.hghivln.pojo.vo.AjaxResult;
import com.hghivln.service.InventoryLogService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("erp/inventoryLog")
public class InventoryLogController {

    @Reference
    private InventoryLogService inventoryLogService;

    /**
     * 分页查询
     */
    @HystrixCommand
    @GetMapping("listInventoryLogForPage")
    public AjaxResult listInventoryLogForPage(InventoryLogDto inventoryLogDto) {
        return inventoryLogService.listInventoryLogForPage(inventoryLogDto);
    }
}
